package org.osll.tictactoe.client.console;

import org.osll.tictactoe.Control;
import org.osll.tictactoe.ServerConnection;
import org.osll.tictactoe.Team;
import org.osll.tictactoe.transport.ConnectionFactory;

public class Client {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		ServerConnection con = ConnectionFactory.getInstance().getConnection(ConnectionFactory.Type.TCP);
		Control c = con.connect("zps", Team.X);
		System.out.println(c.getMoveEndTime());
		try {
			Thread.currentThread().sleep(10000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		c.disconnect();
	}

}
